﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace HCIproject
{
    /// <summary>
    /// Interaction logic for levelMenu.xaml
    /// </summary>
    public partial class levelMenu : Window
    {
        public levelMenu()
        {
            InitializeComponent();
        }
        private void btnMedium_Click(object sender, RoutedEventArgs e)
        {
            PlayWindow pw = new PlayWindow("Medium");
            pw.Show();
            this.Close();
        }

        private void btnHard_Click(object sender, RoutedEventArgs e)
        {
            PlayWindow pw = new PlayWindow("Hard");
            pw.Show();
            this.Close();
        }

        private void btnMainMenu_Click(object sender, RoutedEventArgs e)
        {
            MainWindow mw = new MainWindow();
            mw.Show();
            this.Close();
        }

        private void btnEasy_Click(object sender, RoutedEventArgs e)
        {
            PlayWindow pw = new PlayWindow("Easy");
            pw.Show();
            this.Close();
        }

        private void Window_Loaded_1(object sender, RoutedEventArgs e)
        {
            DirectoryInfo DI = new DirectoryInfo(Environment.CurrentDirectory);
            string Audio = DI.Parent.Parent.FullName.ToString() + "\\Audio\\KillDuck.mp3";

            media.Source = new Uri(Audio);
            media.Play();
        }
    }
}
